export default {
    /**
     * 数据表格加载
     * @param {*VUE} parent 
     * @param {number} page 
     */
    tableLoad(parent,page){
      parent.loading = true;
      page = page? page:1;   
      parent.$c.PigeonsGet('finance/plan/{user}/sets', 
        {page: page}, 
        (result)=>{
          parent.tableData = result.data;
          parent.tb_pagerMk = true;
          parent.tb_pager = {count:result.count, page:result.page};
        },
        (error, httpMK)=>{
          parent.$message({message: error, type: 'warning'});
        },
        () =>{
          parent.loading = false;
          parent.fullscreenLoading = false;
        }
      );
    },
    /**
     * 后去单记录数据
     * @param {*VUE} parent 
     * @param {any} param 
     */
    loadSinglerList(parent, param){
      parent.$c.PigeonsGet('finance/plan/list/'+param.no,
        null,
        (dd)=>{
          parent.ruleForm = dd;
        },
        (error, httpMK)=>{
        },
        ()=>{}
      );
    }
}